Declare Function GetPrivateProfileString Lib "Kernel" (ByVal lpApplicationName As String, lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Integer, ByVal lpFileName As String) As Integer
Declare Function WritePrivateProfileString Lib "Kernel" (ByVal lpApplicationName As String, lpKeyName As Any, lpString As Any, ByVal lplFileName As String) As Integer
Declare Function GetPrivateProfileInt Lib "Kernel" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal nDefault As Integer, ByVal lpFileName As String) As Integer
Declare Function WinExec Lib "Kernel" (ByVal lpCmdLine As String, ByVal nCmdShow As Integer) As Integer
Declare Function GetTickCount Lib "User" () As Long
Declare Sub BringWindowToTop Lib "User" (ByVal hWnd As Integer)
Declare Function SendMessage Lib "User" (ByVal hWnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, lParam As Any) As Long
Global Const WM_USER = &H400
'Used to set the tab stops in the list box
Global Const LB_SETTABSTOPS = WM_USER + 19
'Used to add a horizontal scroll bar to the list boxes
Global Const LB_SETHORIZONTALEXTENT = (WM_USER + 21)
Global Const EM_SETREADONLY = (WM_USER + 31)
Global Const WPF_RESTORETOMAXIMIZED = 2
Global Const SWP_NOMOVE = 2
Global Const SWP_NOSIZE = 1
Global Const HWND_TOPMOST = -1
Global Const HWND_NOTOPMOST = -2
Function File_Exist (Path)
'Returns a true if the file exists
If InStr(1, Path, Dir$(Path), 1) > 1 Then
File_Exist = True
Else
File_Exist = False
End If
End Function
Function ini_get (filename As String, section As String, Variable As String)
'Returns an INI parameter from the specified INI file and specified section
Dim ret As String
ret = Space$(255)
r = GetPrivateProfileString(ByVal section, ByVal Variable, "", ret, Len(ret), filename)
ini_get = Left(ret, r)
End Function
Function ini_get_int (filename As String, section As String, Variable As String) As Integer
'Returns an INI parameter from the specified INI file and specified section